home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_27393_000007.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.8 KB

  1. Path: cs.chalmers.se!chalmers.se!sunic!mcsun!uunet!europa.eng.gtefsd.com!gatech!concert!sas!mozart.unx.sas.com!walker
  2. From: walker@twix.unx.sas.com (Doug Walker)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS/C V6.x's break disabling
  5. Message-ID: <C3KwBF.D6u@unx.sas.com>
  6. Date: 8 Mar 93 16:26:03 GMT
  7. References: <1993Mar8.064632.15929@sfu.ca>
  8. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  9. Organization: SAS Institute Inc.
  10. Lines: 37
  11. Originator: walker@twix.unx.sas.com
  12. Nntp-Posting-Host: twix.unx.sas.com
  13.  
  14.  
  15. In article <1993Mar8.064632.15929@sfu.ca>, samy@fraser.sfu.ca (Sam Yee) writes:
  16. |> I can't seem to disable SAS/C V6.x's breaking.
  17. |> Here is roughly what I have:
  18. |> ---------------------
  19. |> #include <stdio.h>
  20. |> 
  21. |> int CXBRK(void){return(0);} /* disables ^C break? */
  22. |> int chkabort(void){return(0);}
  23.  
  24. The names have changed in V6.0 in order to comply with the
  25. ANSI restrictions on non-ANSI library function names.  Use
  26. the following:
  27.  
  28.    int __chkabort(void){return 0;}
  29.  
  30. Note that you will need to make sure that this gets compiled
  31. with registerized parameters as well;  the easiest thing is
  32. to simply compile with PARMS=REG.  You could also add the
  33. __regargs keyword:
  34.  
  35.    int __regargs __chkabort(void){return 0;}
  36.  
  37. but then you also need to add it to the prototype in 
  38. include:dos.h if you include that file.
  39.  
  40. Note also that the new name for CXBRK is _CXBRK, but you do not
  41. need to define it if you redefine __chkabort correctly.
  42.  
  43. -- 
  44.   *****
  45. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  46.  *|. o.| ||                                          1200/2400/9600 Dual
  47.   | o  |//     For all you do, this bug's for you!
  48.   ====== 
  49. usenet: walker@unx.sas.com                            bix: djwalker 
  50. Any opinions expressed are mine, not those of SAS Institute, Inc.